// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) definits fieldsfirst ansi space safe 
// Source File Name:   HockeyPuck.java

package jones;

import jones.rigid.ConvexPolygon;
import jones.rigid.RegularPolygon;
import jones.rigid.SimpleRigidBody;

public class HockeyPuck extends SimpleRigidBody
{

    private static final ConvexPolygon puck = new RegularPolygon(10, 3D);
    private double x = 0;
    private double y = 0;

    public HockeyPuck(double x, double y)
    {
        this.x = x;
        this.y = y;
        init();
    }

    public HockeyPuck(HockeyPuck hockeyPuck)
    {
        super(((SimpleRigidBody) (hockeyPuck)));
        x = hockeyPuck.x;
        y = hockeyPuck.y;
    }

    public void init()
    {
        setShape(puck);
        setLocation(x, y);
        setPushable(true);
    }

}
